package org.sky.service.serviceImpl;

import org.sky.base.DaoSupport;
import org.sky.model.Authorities;
import org.sky.service.AuthoritiesService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.HashMap;
import java.util.Map;

/**
 * Created with IntelliJ IDEA.
 * User: Administrator
 * Date: 12-10-21
 * Time: 下午8:33
 * To change this template use File | Settings | File Templates.
 */

@Service
@Transactional
public class AuthoritiesServiceImpl extends DaoSupport<Authorities> implements AuthoritiesService {
    public Authorities findPersonByGroupName(String powerGroup) {
        Map<String, Object> params = new HashMap<String, Object>();
        params.put("powerGroup", powerGroup);
        return this.findSpecialObject(Authorities.class, params);
    }

}
